import Home from '../views/Home/Home';
import AdminList from '../views/AdminList/AdminList';
import AdminAdd from '../views/AdminAdd/AdminAdd';
import RoleList from '../views/RoleList/RoleList';
import RoleAdd from '../views/RoleAdd/RoleAdd';
import GoodsList from '../views/GoodsList/GoodsList';
import GoodsAdd from '../views/GoodsAdd/GoodsAdd';
import UserDetail from '../views/UserDetail/UserDetail';

const menuList=[
    {
        title:'首页',
        icon:'home',
        path:'/index/home',
        show:true
    },
    {
        title:'管理员',
        icon:'usergroup-add',
        path:'2',
        show:true,
        subKey:'sub1',
        children:[
            {
                title:'管理员列表',
                icon:'user',
                path:'/index/adminList',
                show:true
            },
            {
                title:'角色管理',
                icon:'usergroup-delete',
                path:'/index/roleList',
                show:true
            }
        ]
    },
    {
        title:'商品管理',
        icon:'shopping',
        path:'3',
        show:true,
        subKey:'sub2',
        children:[
            {
                title:'商品列表',
                icon:'gold',
                path:'/index/goodsList',
                show:true
            },
            {
                title:'商品分类',
                icon:'apartment',
                path:'3-2',
                show:true
            },
            {
                title:'商品评价',
                icon:'smile',
                path:'3-3',
                show:true
            }
        ]
    },
    {
        title:'订单管理',
        icon:'copy',
        path:'4',
        show:true,
        subKey:'sub3',
        children:[
            {
                title:'全部订单',
                icon:'file',
                path:'4-1',
                show:true
            },
            {
                title:'用户详情',
                icon:'file',
                path:'/index/user/detail',
                show:true
            },
            {
                title:'待发货',
                icon:'export',
                path:'4-2',
                show:true
            },
            {
                title:'待收货',
                icon:'import',
                path:'4-3',
                show:true
            },
            {
                title:'待付款',
                icon:'dollar',
                path:'4-4',
                show:true
            },
            {
                title:'已完成',
                icon:'file-protect',
                path:'4-5',
                show:true
            },
            {
                title:'已取消',
                icon:'gift',
                path:'4-6',
                show:true
            },
            {
                title:'售后管理',
                icon:'setting',
                path:'4-7',
                show:true
            }
        ]
    }
];
const routeList=[
    {
        path:'/index/',
        component:Home
    },
    {
        path:'/index/home',
        component:Home
    },
    {
        path:'/index/adminList',
        component:AdminList
    },
    {
        path:'/index/adminAdd',
        component:AdminAdd
    },
    {
        path:'/index/roleList',
        component:RoleList
    },
    {
        path:'/index/roleAdd',
        component:RoleAdd
    },
    {
        path:'/index/goodsList',
        component:GoodsList
    },
    {
        path:'/index/goodsAdd',
        component:GoodsAdd
    },
    {
        path:'/index/user/detail',
        component:UserDetail
    }
];
export {menuList,routeList};
